﻿using BalanceManager.Model;
using System;
using System.Globalization;
using System.Windows.Data;

namespace BalanceManager.Helpers.Converters
{
    public class FlowTypeToTextConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var ff = (FlowType) value;
            switch (ff)
            {
                case FlowType.Expense: return "расход";
                case FlowType.Profit: return "прибыль";
                default: return string.Empty;
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
